package com.youaishujuhui.devops.web.vo;

/**
 * 
* @Description: 分页对象
* @author chendongming
* @date 2018年5月15日 下午8:33:11
*
 */
public class Page {
	
	private int total;
	private int size = 20;
	private int curPage = 1;
	private int pageCount;
	
	public Page() {
	}
	
	public Page(int total,int size){
		this.total = total;
		this.size = size;
		pageCount = total%size==0?total/size:(total/size)+1;
	}
	
	public int getTotal() {
		return total;
	}
	public void setTotal(int total) {
		this.total = total;
	}
	public int getSize() {
		return size;
	}
	public void setSize(int size) {
		this.size = size;
	}
	public int getCurPage() {
		return curPage;
	}
	public void setCurPage(int curPage) {
		this.curPage = curPage;
	}
	public int getPageCount() {
		return pageCount;
	}
	public void setPageCount(int pageCount) {
		this.pageCount = pageCount;
	}

}
